#include<iostream>
#include<unistd.h>
#include<sys/wait.h>

using namespace std;

int main()
{
    cout<<"当前进程代码"<<endl;

    execl("/usr/bin/ls","ls","-a","-l",NULL);

    exit(1);

    cout<<"当前结束代码"<<endl;
    return 0;
}
